package com.ostrich.cloud.ostrichBusinessWeb.client;

import com.ostrich.cloud.common.result.Result;
import com.ostrich.cloud.ostrichBusinessWeb.client.param.PutDeliveryParam;
import com.ostrich.ostrichUserService.param.rider.RegRider;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;


@FeignClient(contextId = "delivervWebClient",name="ostrichBusinessWeb")
public interface DelivervWebClient {
        @PostMapping("startDelivery")
        public Result startDelivery(@RequestBody PutDeliveryParam param);

        @PostMapping("riderAdd")
        public Result riderRegister(@RequestBody @Valid RegRider regRider);
}
